import { ApiProperty } from '@nestjs/swagger';

export class CreateMenuDto {
  @ApiProperty({ description: '菜单名称', default: '首页' })
  name: string;
  @ApiProperty({ description: '上级菜单id', default: '123456' })
  parent_id?: string;
  @ApiProperty({ description: '菜单路径', default: '/login' })
  path: string;
  @ApiProperty({ description: '菜单图标', default: 'arrowLeft' })
  icon?: string;
  @ApiProperty({
    description: '是否超级管理员菜单,只有超级管理员可以设置',
    default: 0,
  })
  is_admin?: number;
}
